package com.ys.service.business;

import lombok.AllArgsConstructor;
import lombok.Data;

public interface YsbExportLogService {

	ExportDto init(Long menuId);
	@Data
	@AllArgsConstructor
	public static class ExportDto {
		private Integer code; // 状态
		private Long id; // 导出文件ID
		private String msg; // 消息
		
	    public enum Code {
	    	
	    	SUCCESS("成功", 0), FAILED("失败", 1);
	    	public String name;
	    	public Integer value;

	    	private Code(String name, Integer value) {
	    		this.name = name;
	    		this.value = value;
	    	}

	    	public static String getName(int value) {
	    		for (Code e : Code.values()) {
	    			if (e.value == value) {
	    				return e.name;
	    			}
	    		}

	    		return "";
	    	}
	    }
	}
	
	void updateSuccess(Long id, String url);

	void updateSuccess(Long id, String url,String bid);

	void updateFail(Long id);

	void updateFail(Long id,String bid);



	void add(Long menuId, String url);
}